import request from '@/utils/request'

export function page({id,name,remark,page,pageSize}) {
    return request({
        url: 'storage/page',
        method: 'get',
        params: {
            id,
            name, 
            remark,
            page,
            pageSize
        }
    })
}
export function addStorage(Storage) {
    return request({
        url: 'storage/save',
        method: 'post',
        data: Storage,
    })
}

export function getById(id) {
    return request({
        url: 'storage/'+id,
        method: 'delete',
    })
}

export function selectById(id) {
    return request({
        url: 'storage/'+id,
        method: 'get',
    })
}

export function update(Storage) {
    return request({
        url: 'storage/update',
        method: 'put',
        data : Storage
    })
}

export function sele(){
    return request({
        url:'storage/sele',
        menubar:'get',
    })
}

export function getByStorage(params) {
    return request({
        url: 'storage/storage',
        method: 'get',
        data:params
    })
}
